package com.g4.shoppingsingle.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author admin
 * @since 2021-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dd_sub_order_info")
public class DdSubOrderInfo extends BasePojo  {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品品id
     */
    @TableField("pd_id")
    private Integer pdId;

    /**
     * 商品型号id
     */
    @TableField("type_id")
    private Integer typeId;

    /**
     * 商品名称
     */
    @TableField("pd_name")
    private String pdName;

    /**
     * 版本描述
     */
    @TableField("pd_version")
    private String pdVersion;

    /**
     * 颜色
     */
    @TableField("color")
    private String color;

    /**
     * 实际支付价格
     */
    @TableField("actual_price")
    private BigDecimal actualPrice;

    /**
     * 购买数量
     */
    @TableField("num")
    private Integer num;

    /**
     * 主订单id
     */
    @TableField("or_id")
    private String orId;



}
